package cn.jinjimi.app.custom.ui.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import cn.jinjimi.app.R;
import cn.jinjimi.app.custom.entity.Custom;

/**
 * Created by Roy
 * Date: 2017/1/25
 */

public class CustomSoldOrUnsoldGuideView extends LinearLayout {
    private TextView tvTitle;

    public CustomSoldOrUnsoldGuideView(Context context) {
        super(context);
        LayoutInflater.from(getContext()).inflate(R.layout.view_unsold_customer_guide_view, this);
        initView();
    }

    private void initView() {
        tvTitle = (TextView) findViewById(R.id.empty_type_title);
    }

    public void setType(int type) {
        if (type == Custom.TYPE_UNSOLD_CUSTOMER) {
            tvTitle.setText("暂无准客户");
        } else if (type == Custom.TYPE_SOLDED_CUSTOMER) {
            tvTitle.setText("暂无已签单客户");
        }
    }
}
